#include <stdio.h>
#include <string.h>
#include "algorithm/hash/crc.h"

int main(int argc, char **argv) {
    char data[16] = { 0x00 };
    strcpy(data, "hello world");
    uint16_t crc = crc16_ibm_calc(data, strlen(data));
    printf("%d\n", crc);
    memcpy(data+strlen(data), &crc, 2);
    crc = crc16_ibm_calc(data, strlen(data));
    printf("%d\n", crc);
    return 0;
}